package com.blog.Bard.base.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试
 * @author phil
 *
 */
@Controller
public class HelloController {

	@ResponseBody
	@RequestMapping("sayHi")
	public String sayHi() {
		return "hi bard";
	}
	
	@RequestMapping("demo")
	public String demo(Model model) {
		model.addAttribute("welcome", "welcome to the bard's blog!");
		return "demo";
	}
	
}
